#include "Iw2D.h"

void N2F::Iw3D::Iw2DHelper::Init()
{
	Iw2DInit();
	IwGxInit();
	IwGxFontInit();
	IwGxLightingOn();
	IwGxSetColClear(0, 0, 0, 0xff);

	return;
}

void N2F::Iw3D::Iw2DHelper::ClearScreen()
{
	IwGxClear();

	return;
}

void N2F::Iw3D::Iw2DHelper::PreFont()
{
	Iw2DFinishDrawing();

	return;
}

void N2F::Iw3D::Iw2DHelper::EndTick()
{
	IwGxFlush();
	Iw2DSurfaceShow();
	s3eDeviceYield(0);

	return;
}

void N2F::Iw3D::Iw2DHelper::Clean()
{
	IwGxFontTerminate();
	Iw2DTerminate();
	IwGxTerminate();

	return;
}
